package com.lfy;

import com.lfy.util.SpringUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableRabbit
@MapperScan("com.lfy.dao")
@EnableAsync
public class DanLiTestApplication {

    public static void main(String[] args) throws NoSuchFieldException {
        SpringApplication.run(DanLiTestApplication.class, args);
        System.out.println("Run"+SpringUtil.applicationContext);

    }

}
